import { useMemo } from 'react'

function useScroll(currentWidget) {
  const scroll = useMemo(() => {
    const { height } = currentWidget?.size || {}
    return { y: height - 56 - 47 }
  }, [currentWidget])

  return scroll
}

export default useScroll
